import request from "@/utils/request";

// 获取轮播图列表
export function getAppBannerList(query) {
  return request({
    url: "/app/getAppBannerListAdmin",
    method: "get",
    params: query
  });
}

// 添加轮播图
export function addAppBanner(data) {
  return request({
    url: "/app/addAppBanner",
    method: "post",
    data,
  });
}

// 删除轮播图
export function deleteAppBanner(data) {
  return request({
    url: "/app/deleteAppBanner",
    method: "post",
    data,
  });
}

// 修改轮播图
export function updateAppBanner(data) {
  return request({
    url: "/app/updateAppBanner",
    method: "post",
    data,
  });
}

// 查看轮播图
export function getAppBannerInfo(query) {
  return request({
    url: "/app/getAppBannerInfo",
    method: "get",
    params: query
  });
}
